import Vue from 'vue'
import Vuex from 'vuex'
import { taskReportInfoApi } from '@/api/home'
Vue.use(Vuex)

const state = {
  res: null
}
const mutations = {

}

const actions = {
  async TaskReportAction (context, playload) {
    const res = await taskReportInfoApi(playload)
    context.state.res = res
    console.log(context.state.res)
  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}
